package com.jspxcms.core.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;

import com.jspxcms.common.orm.Limitable;
import com.jspxcms.core.domain.Attachment;

public interface AttachmentDao extends Repository<Attachment, Integer>, AttachmentDaoPlus {
	public Page<Attachment> findAll(Specification<Attachment> spec, Pageable pageable);

	public List<Attachment> findAll(Specification<Attachment> spec, Limitable limitable);

	public Attachment findOne(Integer id);

	public Attachment save(Attachment bean);

	public void delete(Attachment bean);
	
	// --------------------
	
}
